package com.ecable.delegate;

import java.util.Vector;

import com.ecable.exception.ConnectionException;
import com.ecable.exception.DataNotFoundException;
import com.ecable.exception.LoginException;
import com.ecable.bean.StateTO;

import com.ecable.serviceI.AddStateServiceI;
import com.ecable.serviceImpl.AddStateServiceImpl;

public class StateMgrDelegate {

	AddStateServiceI siface = new AddStateServiceImpl();

	public boolean insertState(StateTO st) throws LoginException,
			ConnectionException {
		return siface.insertState(st);
	}

	public Vector<StateTO> viewState() throws ConnectionException,
			DataNotFoundException {
		return siface.viewState();
	}

	public StateTO viewStateInfo(int sid1) throws DataNotFoundException {
		return siface.viewStateInfo(sid1);
	}

	public boolean deleteState(int sid) throws LoginException,
			ConnectionException {
		return siface.deleteState(sid);
	}

	public boolean updateState(StateTO df) throws LoginException,
			ConnectionException {
		return siface.updateState(df);
	}

}
